<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            height: 100px;
            width: 300px;
            border: thin solid;
            /* line-height: 50px; */
            background-color: #dbdbdb;
            display: flex;
            justify-content: space-evenly;
            align-items: center;
        }
        p{
            margin: 0;
            /* width: 150px; */
        }
        span{
            color: #ff2118;
            margin-left: 5px;
            /* vertical-align: 20px; */
            /* line-height:100px; */
        }
        input{
            pointer-events: none; /* 通过样式禁用input框 */
        }
    </style>
</head>
<body>
    <div>
        <p>就会找到前面元素内部最后</p><span>问题</span>
    </div>
    <input type="text">
</body>
</html>